package com.droowa.model.service;

import java.sql.SQLException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;





import com.droowa.domain.CancelManagement;
import com.droowa.domain.ExchangeManagement;
import com.droowa.model.dao.ExchangeManagementDAO;

@Service
public class ExchangeManagementServiceImpl implements ExchangeManagementService{
	
	@Autowired
	private ExchangeManagementDAO dao;
	
	@Override
	public int joinExchangeManagement(ExchangeManagement exchangeManagement) throws SQLException {
		return dao.insertExchangeManagement(exchangeManagement);
	}

	@Override
	public int removeExchangeManagement(String orderNumber) throws SQLException {
		return dao.deleteExchangeManagement(orderNumber);
	}

	@Override
	public int modifyExchangeManagement(ExchangeManagement exchangeManagement) throws SQLException {
		return dao.updateExchangeManagement(exchangeManagement);
	}

	@Override
	public List getExchangeManagementByAll(HashMap map) throws SQLException {
		List<ExchangeManagement> list = dao.selectExchangeManagementByAll(map);
		return list;
	}

	
	

}
